import {
    Navigate
} from 'react-router-dom'

import Onec from '../../components/Onec'
import Twoc from '../../components/Twoc'
import Threec from '../../components/Threec'
import Info from '../info'
import Infoc from '../infoc'

const routers = [{
        path: "/onec",
        element: <Onec></Onec>,
    },
    {
        path: "/twoc",
        element: <Twoc></Twoc>,
    },
    {
        path: "/threec",
        element: <Threec></Threec>,
    },
    {
        path: "/info/:id",
        element: <Info></Info>,
    },
    {
        path: "/infoc",
        element: <Infoc></Infoc>,
    },
    {
        path: "/",
        element: <Navigate to = "/onec"/> ,
    },
]

export default routers